package design.factory.first;

import design.factory.first.model.Phone;

/**
 * 调用类
 */
public class ClientMain {
    public static void main(String[] args) {
        //生产小米手机
        Phone phone = PhoneFactory.createPhone("xiaomi");
        System.out.println(phone.getModel());

        //生产华为手机
        phone = PhoneFactory.createPhone("huawei");
        System.out.println(phone.getModel());

    }
}
